<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/carInformation.js"></script>
</head>
<body>
<%--此处必须设计为双标签,否则不能作为容器储存数据--%>
<table id="emp_grid"></table>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="reload()">刷新</a>
    <%--在easyUI中文本框的格式为textboxchangeState--%>
    <%--设置提示内容的属性为prompt--%>
    <input class="easyui-textbox" name="keyword" prompt="车牌/品牌/车主">
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="query()">搜索</a>
</div>
<div id="form_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel()">取消</a>
</div>

<%--新增,编辑 弹窗--%>
<div id="emp_dialog">
    <%--切记提交表单的方式--%>
    <form id="emp_form" method="post" data-url="/carInformation/saveOrUpdate.do">
        <input type="hidden" id="id" name="id"/>
        <table align="center" style="margin-top: 15px">
            <tr>
                <td>车主姓名:</td>
                <td>
                    <input name="name" class="easyui-textbox" prompt="请输入车主姓名">
                </td>
            </tr>
            <tr>
                <td>车辆品牌:</td>
                <td>
                    <input name="brand" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>车辆型号:</td>
                <td>
                    <input name="version" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>车牌号码:</td>
                <td>
                    <input name="carnumber" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>排气量/L:</td>
                <td>
                    <input name="gasnumber" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>购买日期:</td>
                <td>
                    <input name="begindate" class="easyui-datebox">
                </td>
            </tr>
            <tr>
                <td>市场估价/万元:</td>
                <td>
                    <input name="price" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>分类:</td>
                <td>
                    <input name="type" class="easyui-combobox"
                           data-options="panelHeight:'auto',valueField:'value',textField:'label',
                                data:[{
                                    label: '载物',
                                    value: '1'
                                },{
                                    label: '载客',
                                    value: '0'
                                }]">
                </td>
            </tr>
            <tr>
                <td>车载大小:</td>
                <td>
                    <input name="size" class="easyui-combobox"
                           data-options="panelHeight:'auto',valueField:'value',textField:'label',
                                data:[{
                                    label: '载物',
                                    value: '1'
                                },{
                                    label: '载客',
                                    value: '0'
                                }]">
                </td>
            </tr>
            <tr>
                <td>备注信息:</td>
                <td>
                    <input name="remark" class="easyui-textbox" width="40px" height="40px">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
